import axios from "./axios";
//请求示例
//get
// export const mokeGet = (data) => {
//     return axios({
//         url: "/api/xxxx",
//         method: "get",
//         data,
//         config: {
//             headers: {
//                 'Request-Type': 'wechat'
//             },
//             timeout: 10000
//         }
//     })
// }
//post
export const getNewsList = (data) => {
  return axios({
    url: "getNewsList.php",
    method: "get",
    data,
    config: {
      timeout: 6000,
    },
  });
};
export const getNewsDetail = (data) => {
  return axios({
    url: "getNewsDetail.php",
    method: "get",
    data,
    config: {
      timeout: 6000,
    },
  });
};
export const addCellect = (data) => {
  return axios({
    url: "addCellect.php",
    method: "get",
    data,
    config: {
      timeout: 6000,
    },
  });
};
export const getCellectList = (data) => {
  return axios({
    url: "getCellectList.php",
    method: "get",
    data,
    config: {
      timeout: 6000,
    },
  });
};
export const setUserPwd = (data) => {
  return axios({
    url: "setUserPwd.php",
    method: "get",
    data,
    config: {
      timeout: 6000,
    },
  });
};
export const userRegister = (data) => {
  return axios({
    url: "userRegister.php",
    method: "get",
    data,
    config: {
      timeout: 6000,
    },
  });
};
export const userLogin = (data) => {
  return axios({
    url: "userLogin.php",
    method: "get",
    data,
    config: {
      timeout: 6000,
    },
  });
};
export const setUserImg = (data) => {
  return axios({
    url: "setUserImg.php",
    method: "get",
    data,
    config: {
      timeout: 6000,
    },
  });
};
export const getUserData = (data) => {
  return axios({
    url: "getUserData.php",
    method: "get",
    data,
    config: {
      timeout: 6000,
    },
  });
};
